﻿using System.Threading.Tasks;
using Zocono.Infrastructure.Common;
using Zocono.WCS.Domain.PlcBytesObject;
using Zocono.WCS.Domain.ProcessModuleDomain;

namespace Zocono.WCS.Domain.EquipmentProcessDomain.PlanarGeneralMessage
{
    /// <summary>
    /// 
    /// </summary>
    public class FreeDataService : IPlanarGeneralPlcActionProcessService
    {
        private readonly ILogUtil _LogUtil;

        public FreeDataService(ILogUtil logUtil)
        {
            _LogUtil = logUtil;
        }

        public Task ProcessActionMessageAsync(BytesObjectBase plcActionMessage, BytesObjectBase wcsActionMessage, EquipmentDbObject planarEquipmentDbObject/*, BytesObjectBase plcStateMassge*/)
        {
            /*
             * 处理逻辑
             * 无需变更数据，记录执行日志
             */

            //_LogUtil.Info($"交互空闲(FreeDataService.ProcessActionMessageAsync)处理成功：设备{plcActionMessage.EquipmentCode}交互空闲");

            return Task.CompletedTask;
        }
    }
}
